package com.xayy.health.mgt.mapper;

import cn.kawins.mybatis.BaseMapper;
import com.xayy.health.core.config.datasource.DatasourceSelector;
import com.xayy.health.mgt.model.DataQuality;
import com.xayy.health.mgt.model.dto.DataQualityDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据处理-质量分析
 *
 * @author zhangxa
 */
public interface DataQualityMapper extends BaseMapper<DataQuality> {

    /**
     * 获取质量分析数据
     *
     * @param dataQualityDto 入参
     * @return List<DataQuality>
     */
    List<DataQuality> getList(DataQualityDto dataQualityDto);

    /**
     * 手动剔野
     *
     * @param times       时间
     * @param sateCode    卫星代号
     * @param paramCode   参数代号
     * @param taskChildId 子任务id
     */
    @DatasourceSelector(sourceName = "clickhouse")
    void handWinking(@Param("times") List<String> times, @Param("sateCode") String sateCode,
                     @Param("paramCode") String paramCode, @Param("taskChildId") Long taskChildId);

}
